import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import DomHelper from './domHelper';

class RayCaster extends Component {
    componentDidMount() {
        this.raycaster = new THREE.Raycaster();
        this.mouse = new THREE.Vector2();
        DomHelper.raycaster = this.raycaster;
        DomHelper.mouse = this.mouse;
    }

    componentWillUnmount() {
        // this.raycaster.remove();
    }

    render() {
        return ( <div /> );
    }
}

export default RayCaster;
